{% extends "account/base.html" %}
{% load crispy_forms_tags %}


{% block title %}注册{% endblock %}

{% block content %}
    <div class="row">
        <div class="col-6">
            <h1>注册</h1>
            <p class="text-muted">已经有一个账号？ 请<a href="{{ login_url }}">登录</a></p>
            <form action="{% url 'account_signup' %}" class="signup" id="signup_form" method="post" novalidate>
                {% csrf_token %}
                {{ form | crispy }}
                {% if redirect_field_value %}
                <input name="{{ redirect_field_name }}" type="hidden" value="{{ redirect_field_value }}"/>
                {% endif %}
                <button class="btn btn-outline-primary" type="submit">注册</button>
            </form>
        </div>
    </div>
{% endblock %}
